Scanner scanner=new Scanner(System.in);
System.out.println("请输入3个数：");
int a=scanner.nextInt();
int b=scanner.nextInt();
int c=scanner.nextInt();
int temp;
if (a<b) {
	temp=a;
	a=b;
	b=temp;
}
if (a<c) {
	temp=a;
	a=c;
	c=temp;
}
if (b<c) {
	temp=b;
	b=c;
	c=temp;
}
System.out.println(a+" "+b+" "+c);
